/*
package com.wz.mapper;

import com.wz.pojo.Department;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

//部门的Dao
@Repository
public class  DepartmentDao {
    //模拟数据库数据
    private  static Map<Integer, Department> departmentMap=null;
    static {
            departmentMap=new HashMap<Integer,Department>();
            departmentMap.put(101,new Department(101,"教学部"));
            departmentMap.put(102,new Department(102,"市场部"));
            departmentMap.put(103,new Department(103,"教研部"));
            departmentMap.put(104,new Department(104,"运营部"));
            departmentMap.put(105,new Department(105,"行政部"));
    }
    //获得所有部门信息
    public Collection<Department> listDepartments(){
        return departmentMap.values();
    }

    //通过Id获得部门数据
    public Department getDepartmentById(Integer id){
        return  departmentMap.get(id);
    }



}
*/
